package com.admin.boot.modules.department.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;




import java.util.Date;



import java.io.Serializable;
import java.util.List;

/**
* (SysDepartment)实体类
*
* @author makejava
* @since 2024-01-12 14:51:54
*/
@Data
@TableName("sys_department")
@Accessors(chain = true)
public class SysDepartment implements Serializable {
private static final long serialVersionUID = -43316718241889750L;

    /**
    * 主键
    */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
    * 部门名称
    */
    @ApiModelProperty(value = "部门名称")
    private String departName;

    /**
    * 上级部门id
    */
    @ApiModelProperty(value = "上级部门id")
    private String pid;

    /**
    * 状态
    */
    @ApiModelProperty(value = "状态")
    private Integer status;

    @TableField(exist = false)
    private List<SysDepartment> children;

}

